<?php
/**
 * 课目录
 * Class StudyAction
 */
class StudyAction extends CommonAction
{
    public function index()
    {

    }

    /**
     * 课程下面课程信息
     */
    public function item()
    {
    }

    public function add()
    {
        $itemid = intval(I('get.cid'));
        $this->checkEmpty($itemid, '标示不正确！');
        $course = M('Course')->find($itemid);
        $this->checkEmpty($course, '课程信息不存在！');
        $this->assign('course', $course);
        $data = array();
        $data = $_POST;
        $data['cid'] = $itemid;
        parent::_add($data);
    }

    public function edit()
    {
        parent::_edit();
    }
}